AppBoxoWebAppInit
AppBoxoWebAppGetInitData
app_id
Miniapp ID client_id
Host client ID payload
String consisting of encrypted user details data {[key: string]: any}
null custom data passed from Hostapp token
optional User session token if it is still active.getInitData()
that handles saving details above in cookies or localStorage and returns a Promise. AppBoxoWebAppOpenMiniApp
app_id
required Miniapp ID to openAppBoxoWebAppCloseMiniApp
AppBoxoWebAppOnRestore
AppBoxoWebAppLogin
AppBoxoWebAppLogout
AppBoxoWebAppClearToken
AppBoxoWebAppSaveToken
token
required Token to save in host appAppBoxoWebAppPay
transactionToken
required string
Transaction tokenminiappOrderId
required number
Unique identifier for the current paymentamount
required boolean
Payment amountcurrency
required string
Define currency codeextraParams
: any
Any extra datatransactionToken
: string
Transaction tokenminiappOrderId
: number
Unique identifier for the current paymenthostappOrderId
: number
Unique identifier from hostappamount
: boolean
Payment amountcurrency
: string
Define currency codestatus
: string
Status of the paymentextraParams
: any
Any extra dataAppBoxoWebAppSetTabBar
show
required boolean
Defines TabBar visibilityactiveTab
required number
Active TabBar item idlist
required Array<{ tabId: number, tabName: string, tabIcon: string }> Define tabs
options
required { color: string, background: string, selectedColor: string, hasBorder: boolean, borderColor: string }
Tab bar optionsbadges
optional Array<{ tabId: number, background: string, color: string, value?: string }>
Define tab item badges.AppBoxoWebAppTabBarItemClick
AppBoxoWebAppSetNavigationBar
AppBoxoWebAppSetActionButton
AppBoxoWebAppLoadingIndicator
AppBoxoWebAppOpenQRCodeReader
AppBoxoWebAppOpenQRCodeReaderResult
or AppBoxoWebAppOpenQRCodeReaderFailed
Example:
AppBoxoWebAppVibrate
style
optional 'light' | 'medium' | 'heavy'
Controls strength of vibration, defaults to ‘light’.
Example:AppBoxoWebAppShowActionSheet
header
optional string
Action sheet header text
list
required Array<{ id: number, text: string, role?: 'cancel' | 'destructive' | 'selected' }>
Define action sheet items
Example:
AppBoxoWebAppActionSheetItemClick
AppBoxoWebAppGetGeodata
AppBoxoWebAppChooseLocation
AppBoxoWebAppOpenLocation
AppBoxoWebAppShowAlert
header
optional string
Alert header text
message
optional string
Alert message
buttons
required Array<{ id: number, text: string, role?: 'cancel' | 'destructive' }>
Define buttons
Example:
AppBoxoWebAppShowImages
start_index
optional number
Index to start showing from
images
required Array<string>
Image urls
Example:
AppBoxoWebAppStorageGet
keys
required Array<string>
Keys for getting ([a-zA-Z_-0-9])
Example:
AppBoxoWebAppStorageGetKeys
count
required number
Count of keys to get. Max value is 1000
offset
optional number
The offset required to fetch a specific subset of keys. Default: 0
Example:
AppBoxoWebAppStorageSet
key
required string
The key of value ([a-zA-Z_-0-9])
value
optional string
value
Example:
AppBoxoWebAppStorageRemove
key
required string
The key of value ([a-zA-Z_-0-9])
Example:
AppBoxoWebAppStorageClear
AppBoxoWebAppGetClipboard
AppBoxoWebAppSetClipboard
data
required string
Content to be copied to clipboard
Example:
AppBoxoWebAppGetSystemInfo
AppBoxoWebAppStartAccelerometer
AppBoxoWebAppStopAccelerometer
AppBoxoWebAppOnAccelerometerChange
AppBoxoWebAppStartGyroscope
AppBoxoWebAppStopGyroscope
AppBoxoWebAppOnGyroscopeChange
AppBoxoWebAppStartCompass
AppBoxoWebAppStopCompass
AppBoxoWebAppOnCompassChange
AppBoxoWebAppSetBackgroundColor
AppBoxoWebAppSetStatusBarColor
AppBoxoWebAppTrack
AppBoxoWebAppCustomEvent
AppBoxoWebAppDownloadFile
AppBoxoWebAppShare